﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Light.Utility.Alipay
{
    public class AlipayConfig
    {
        #region 字段

        private static string partner = "";// 合作身份者ID，以2088开头由16位纯数字组成的字符串
        private static string key = "";//交易安全检验码，由数字和字母组成的32位字符串
        private static string input_charset = "utf-8";//字符编码格式 目前支持 gbk 或 utf-8
        private static string sign_type = "MD5"; //签名方式，选择项：RSA、DSA、MD5

        #endregion

        #region 属性

        /// <summary>
        /// 获取或设置合作者身份ID
        /// </summary>
        public static string Partner
        {
            get { return partner; }
            set { partner = value; }
        }

        /// <summary>
        /// 获取或设交易安全校验码
        /// </summary>
        public static string Key
        {
            get { return key; }
            set { key = value; }
        }

        /// <summary>
        /// 获取字符编码格式
        /// </summary>
        public static string Input_charset
        {
            get { return input_charset; }
        }

        /// <summary>
        /// 获取签名方式
        /// </summary>
        public static string Sign_type
        {
            get { return sign_type; }
        }
        #endregion
    }
}
